FROM java:openjdk-8

LABEL MAINTAINER=wens
# adjust time
RUN echo "Asia/shanghai" > /etc/timezone
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

WORKDIR /home

ADD target/tas-admin-1.0.0-SNAPSHOT.jar /home

ENV JAVA_OPT="-Xms256m -Xmx256m"
ENV PROFLES=test

ENTRYPOINT [ "sh", "-c", "java ${JAVA_OPT} -jar tas-admin-1.0.0-SNAPSHOT.jar --spring.profiles.active=${PROFLES}" ]

